home *** CD-ROM | disk | FTP | other *** search
- global gGraphWizard, gGraph
-
- on keyDown
- if charToNum(the key) = 28 then
- moveLeft(getTable(gGraphWizard))
- else
- if (the key = TAB) or (charToNum(the key) = 29) then
- MoveRight(getTable(gGraphWizard))
- else
- if charToNum(the key) = 30 then
- moveUp(getTable(gGraphWizard))
- else
- if (the key = RETURN) or (charToNum(the key) = 31) then
- moveDown(getTable(gGraphWizard))
- else
- charCount = member("table cell", 1).text.length
- textIsSelected = selection() <> EMPTY
- cellNotFull = charCount < 8
- if textIsSelected or cellNotFull or (the key = BACKSPACE) then
- setaProp(gGraph, #pIsDirty, 1)
- setaProp(gGraph, #pIsConsistant, 0)
- pass()
- else
- beep()
- end if
- end if
- end if
- end if
- end if
- end
-